package matchs

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type SearchRouter struct{}

func (m *SearchRouter) InitSearchRouter(Router *gin.RouterGroup) {
	searchRouter := Router.Group("search").Use(middleware.JWTAuth())
	{
		searchRouter.POST("create", matchSearchApi.CreateSearchTask)                            // 创建寻访任务
		searchRouter.GET("list", matchSearchApi.GetUserSearchTaskList)                          // 获取用户寻访任务列表
		searchRouter.GET("recommend/list", matchSearchApi.GetSearchTaskRecommendList)           // 获取推荐用户列表
		searchRouter.POST("recommend/skip", matchSearchApi.SkipRecommendUser)                   // 跳过推荐用户
		searchRouter.POST("recommend/communicate", matchSearchApi.CommunicateWithRecommendUser) // 沟通推荐用户
		searchRouter.POST("complete", matchSearchApi.CompleteSearchTask)                        // 完成寻访任务并评分
	}
}
